import * as echarts from 'echarts/core';

import {
	BarChart,
	LineChart,
	PieChart,
	MapChart,
	PictorialBarChart,
	RadarChart,
} from 'echarts/charts';

import {
	ToolboxComponent,
	TitleComponent,
	TooltipComponent,
	GridComponent,
	PolarComponent,
	AriaComponent,
	ParallelComponent,
	LegendComponent,
	DataZoomComponent,
	GraphicComponent,
} from 'echarts/components';

import { UniversalTransition } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';

echarts.use([
	ToolboxComponent,
	TitleComponent,
	TooltipComponent,
	GridComponent,
	PolarComponent,
	AriaComponent,
	ParallelComponent,
	LegendComponent,
	DataZoomComponent,
	GraphicComponent,

	BarChart,
	LineChart,
	PieChart,
	MapChart,
	PictorialBarChart,
	RadarChart,

	CanvasRenderer,
	UniversalTransition,
]);

export default echarts;
